import request from "@/utils/request";

// 获取所有品牌
export function getAllBrandListApi() {
  return request({
    url: "/brand/getAllBrandList",
    method: "post",
  });
}

// 查询品牌列表分页
export function getBrandListPageApi(data) {
  return request({
    url: "/brand/queryBrandListPage",
    method: "post",
    data,
  });
}
// 新增品牌
export function addBrandApi(data) {
  return request({
    url: "/brand/add",
    method: "post",
    data,
  });
}

// 更新品牌
export function updateBrandApi(data) {
  return request({
    url: "/brand/update",
    method: "post",
    data,
  });
}

// 删除品牌
export function deleteBrandApi(data) {
  return request({
    url: "/brand/deleteBrandById",
    method: "post",
    data,
  });
}

// 导出品牌信息
export function exportExcelApi(entity) {
  return request({
    url: "/export/excel/" + entity,
    method: "GET",
    responseType: "blob",
  });
}
